confComplete = """Info: The max number of VTY users is 10, and the number
      of current VTY users on line is 2.
      The current login time is 2021-05-19 09:32:17+08:00.
<sw1>display arp
IP ADDRESS      MAC ADDRESS     EXPIRE(M) TYPE INTERFACE      VPN-INSTANCE      
                                          VLAN 
------------------------------------------------------------------------------
192.168.100.251 a849-4d67-e0b9            I -  Vlanif1        
192.168.100.252 48d5-391e-7492  13        D-0  XGE0/0/16      
                                          1    
192.168.100.253 48d5-391f-2df3  16        D-0  XGE0/0/16      
                                          1    
192.168.100.254 7ca2-3e8d-c402  19        D-0  XGE0/0/16      
                                          1    
192.168.0.251   a849-4d67-e0b9            I -  Vlanif100      
192.168.0.252   48d5-391e-7492  10        D-0  XGE0/0/16      
                                          100  
192.168.0.40    f0d4-e2eb-6910  14        D-0  XGE0/0/16      
                                          100  
192.168.0.21    1418-7749-96d0  13        D-0  XGE0/0/16      
                                          100  
192.168.0.254   7ca2-3e8d-c40b  10        D-0  XGE0/0/16      
                                          100  
192.168.1.251   a849-4d67-e0b9            I -  Vlanif101      
192.168.1.252   48d5-391e-7492  18        D-0  XGE0/0/16      
                                          101  
192.168.1.254   7ca2-3e8d-c40c  10        D-0  XGE0/0/16      
                                          101  
192.168.1.12    000c-2994-4f14  1         D-0  XGE0/0/16      
                                          101  
192.168.1.4     000c-2938-a9fb  20        D-0  XGE0/0/16      
                                                                                     101  
192.168.1.8     000c-2902-d8eb  13        D-0  XGE0/0/16      
                                          101  
192.168.1.6     000c-29d1-3f3e  1         D-0  XGE0/0/16      
                                          101  
192.168.1.3     000c-29ca-76dc  11        D-0  XGE0/0/16      
                                          101  
192.168.1.218   000c-2904-3498  8         D-0  XGE0/0/16      
                                          101  
192.168.1.14    b051-8e09-ba23  17        D-0  XGE0/0/16      
                                          101  
192.168.1.2     000c-29a0-1fac  16        D-0  XGE0/0/16      
                                          101  
192.168.1.10    000c-29f6-30c4  13        D-0  XGE0/0/16      
                                          101  
192.168.1.13    000c-2977-1bab  17        D-0  XGE0/0/16      
                                          101  
192.168.1.16    000c-29c8-2a17  10        D-0  XGE0/0/16      
                                          101  
192.168.1.116   f48e-387e-9161  20        D-0  XGE0/0/16      
                                          101  
192.168.1.17    000c-299e-d445  10        D-0  XGE0/0/16      
                                          101  
192.168.1.103   6400-6a38-0855  14        D-0  XGE0/0/16      
                                                                                     101  
192.168.1.250   b8e3-b167-77cf  18        D-0  XGE0/0/16      
                                          101  
192.168.1.18    000c-2927-f0b8  14        D-0  XGE0/0/16      
                                          101  
192.168.1.170   000c-2950-e8e6  9         D-0  XGE0/0/16      
                                          101  
192.168.110.251 a849-4d67-e0b9            I -  Vlanif110      
192.168.110.100 5475-d0a3-8140  16        D-0  XGE0/0/16      
                                          110  
192.168.110.101 7ca2-3e8d-c406  10        D-0  XGE0/0/16      
                                          110  
192.168.110.253 48d5-391f-2df3  20        D-0  XGE0/0/16      
                                          110  
192.168.110.252 48d5-391e-7492  10        D-0  XGE0/0/16      
                                          110  
192.168.110.250 b8e3-b167-77cf  3         D-0  XGE0/0/16      
                                          110  
10.f.0.251    a849-4d67-e0b9            I -  Vlanif120      
10.168.0.40     f8f2-1ea0-3420  14        D-0  XGE0/0/1       
                                          120  
10.168.0.21     f8f2-1ea0-4031  13        D-0  XGE0/0/3       
                                          120  
10.168.0.252    48d5-391e-7492  10        D-0  XGE0/0/16      
                                                                                     120  
10.168.0.254    7ca2-3e8d-c401  10        D-0  XGE0/0/16      
                                          120  
10.168.0.30     f8f2-1ea0-3f00  3         D-0  XGE0/0/5       
                                          120  
192.168.2.251   a849-4d67-e0b9            I -  Vlanif102      
192.168.2.254   7ca2-3e8d-c40d  20        D-0  XGE0/0/16      
                                          102  
192.168.2.109   9457-a514-ab93  15        D-0  XGE0/0/16      
                                          102  
192.168.2.184   9c32-ce56-3a90  7         D-0  XGE0/0/16      
                                          102  
192.168.2.158   6400-6a12-1310  19        D-0  XGE0/0/16      
                                          102  
192.168.2.252   48d5-391e-7492  12        D-0  XGE0/0/16      
                                          102  
192.168.2.169   5413-795b-01d3  14        D-0  XGE0/0/16      
                                          102  
192.168.2.137   509a-4c17-97c8  9         D-0  XGE0/0/16      
                                          102  
192.168.2.136   f48e-387e-8f0d  16        D-0  XGE0/0/16      
                                          102  
192.168.2.196   5cea-1d51-f0a9  11        D-0  XGE0/0/16      
                                          102  
                                           192.168.2.45    3024-a98e-9646  7         D-0  XGE0/0/16      
                                          102  
192.168.2.197   5cba-ef3b-4fe5  11        D-0  XGE0/0/16      
                                          102  
192.168.2.195   94e6-f7e6-bc52  15        D-0  XGE0/0/16      
                                          102  
192.168.2.239   0068-ebf2-8957  19        D-0  XGE0/0/16      
                                          102  
192.168.2.48    d82f-e676-a511  12        D-0  XGE0/0/16      
                                          102  
192.168.2.216   3209-2d5e-bcd9  1         D-0  XGE0/0/16      
                                          102  
192.168.2.244   48f8-db62-2540  5         D-0  XGE0/0/16      
                                          102  
192.168.2.28    0cdd-2490-8841  3         D-0  XGE0/0/16      
                                          102  
192.168.2.230   5885-e9f5-ec7b  11        D-0  XGE0/0/16      
                                          102  
192.168.2.161   3052-cb42-7ba3  17        D-0  XGE0/0/16      
                                          102  
192.168.2.86    90cc-dfa6-3cc7  4         D-0  XGE0/0/16      
                                          102  
192.168.2.34    5885-a2d0-3fc5  6         D-0  XGE0/0/16      
                                          102  
                                           192.168.2.157   d89b-3b99-6beb  15        D-0  XGE0/0/16      
                                          102  
192.168.2.214   c894-bbee-d423  17        D-0  XGE0/0/16      
                                          102  
192.168.2.40    5ae2-c2d8-7927  7         D-0  XGE0/0/16      
                                          102  
192.168.2.146   1856-80e2-be77  3         D-0  XGE0/0/16      
                                          102  
192.168.2.179   8030-4943-599b  8         D-0  XGE0/0/16      
                                          102  
192.168.2.65    0640-05b3-a413  12        D-0  XGE0/0/16      
                                          102  
192.168.2.38    508e-4965-e572  16        D-0  XGE0/0/16      
                                          102  
192.168.2.211   beae-f3db-245a  20        D-0  XGE0/0/16      
                                          102  
192.168.2.140   8cc8-4bbc-4c31  1         D-0  XGE0/0/16      
                                          102  
192.168.2.150   7440-bb21-8b47  4         D-0  XGE0/0/16      
                                          102  
192.168.2.213   f6a4-622a-630f  6         D-0  XGE0/0/16      
                                          102  
192.168.2.29    3c7c-3f4f-3d31  7         D-0  XGE0/0/16      
                                          102  
                                           192.168.2.210   4459-e3fb-5a84  9         D-0  XGE0/0/16      
                                          102  
192.168.2.142   76ff-f24d-39fd  12        D-0  XGE0/0/16      
                                          102  
192.168.2.17    64bc-588e-f99f  18        D-0  XGE0/0/16      
                                          102  
192.168.2.147   b0fc-366b-1b51  1         D-0  XGE0/0/16      
                                          102  
192.168.2.205   4404-44d0-d7c7  14        D-0  XGE0/0/16      
                                          102  
192.168.2.153   b20b-1c7e-b360  4         D-0  XGE0/0/16      
                                          102  
192.168.2.198   722e-5443-cf0a  6         D-0  XGE0/0/16      
                                          102  
192.168.2.183   1cbf-c0ba-3f6d  7         D-0  XGE0/0/16      
                                          102  
192.168.2.33    3c7c-3f4f-3dc1  7         D-0  XGE0/0/16      
                                          102  
192.168.2.113   5a59-6fc4-706b  8         D-0  XGE0/0/16      
                                          102  
192.168.2.110   82d5-1cfd-d819  9         D-0  XGE0/0/16      
                                          102  
192.168.2.87    90cc-df8f-5791  10        D-0  XGE0/0/16      
                                          102  
                                           192.168.2.36    f894-c2a3-54bc  10        D-0  XGE0/0/16      
                                          102  
192.168.2.187   4c63-7126-4bb2  10        D-0  XGE0/0/16      
                                          102  
192.168.2.162   9822-efe3-6083  11        D-0  XGE0/0/16      
                                          102  
192.168.2.189   908c-436f-5fd7  11        D-0  XGE0/0/16      
                                          102  
192.168.2.90    7412-b374-30b3  12        D-0  XGE0/0/16      
                                          102  
192.168.2.134   40b0-7646-cf85  12        D-0  XGE0/0/16      
                                          102  
192.168.2.92    f2c5-ebf4-bab4  14        D-0  XGE0/0/16      
                                          102  
192.168.2.95    1c39-479c-80fc  15        D-0  XGE0/0/16      
                                          102  
192.168.2.55    2280-668c-cce0  20        D-0  XGE0/0/16      
                                          102  
192.168.2.203   fed9-536f-90e6  17        D-0  XGE0/0/16      
                                          102  
192.168.2.194   d0a6-37d4-cddf  18        D-0  XGE0/0/16      
                                          102  
192.168.2.66    a450-46d2-2694  19        D-0  XGE0/0/16      
                                          102  
                                           192.168.2.200   4aba-c37f-9510  19        D-0  XGE0/0/16      
                                          102  
192.168.2.168   144f-8af9-f8b2  20        D-0  XGE0/0/16      
                                          102  
192.168.2.204   369c-0170-e410  20        D-0  XGE0/0/16      
                                          102  
192.168.2.201   de2c-951a-f25b  20        D-0  XGE0/0/16      
                                          102  
10.168.4.251    a849-4d67-e0b9            I -  Vlanif124      
10.168.4.252    48d5-391e-7492  10        D-0  XGE0/0/16      
                                          124  
10.168.4.253    48d5-391f-2df3  2         D-0  XGE0/0/16      
                                          124  
192.168.3.251   a849-4d67-e0b9            I -  Vlanif103      
192.168.3.253   48d5-391f-2df3  13        D-0  XGE0/0/16      
                                          103  
192.168.3.254   7ca2-3e8d-c40e  0         D-0  XGE0/0/16      
                                          103  
192.168.3.151   683e-268f-e0cb  5         D-0  XGE0/0/16      
                                          103  
192.168.3.154   183e-efeb-e0ac  11        D-0  XGE0/0/16      
                                          103  
192.168.3.122   00e0-4c99-9e8f  15        D-0  XGE0/0/16      
                                          103  
                                           192.168.3.158   b87b-c540-219c  18        D-0  XGE0/0/16      
                                          103  
192.168.3.181   dc41-a910-7e49  2         D-0  XGE0/0/16      
                                          103  
192.168.3.148   9822-efe8-aaed  5         D-0  XGE0/0/16      
                                          103  
192.168.3.208   bed1-4e0b-7480  11        D-0  XGE0/0/16      
                                          103  
192.168.3.213   4404-44d0-d7c7  4         D-0  XGE0/0/16      
                                          103  
192.168.3.159   d262-1458-35da  1         D-0  XGE0/0/16      
                                          103  
192.168.3.177   20f4-7812-f0d2  5         D-0  XGE0/0/16      
                                          103  
192.168.3.191   4c63-71c4-af41  6         D-0  XGE0/0/16      
                                          103  
192.168.3.193   2280-668c-cce0  9         D-0  XGE0/0/16      
                                          103  
192.168.3.211   e28f-7186-8cbd  17        D-0  XGE0/0/16      
                                          103  
192.168.3.186   c894-bbee-d423  18        D-0  XGE0/0/16      
                                          103  
------------------------------------------------------------------------------
Total:123       Dynamic:115     Static:0     Interface:8    
<sw1>

Process finished with exit code 0
"""

import re
import string

left = confComplete.find('192')
confComplete = confComplete[left:]
right = confComplete.find("------------------------------------------------------------------------------")
confComplete = confComplete[:right]

# print(str)

ccd = str(confComplete).split()
print(ccd)
list1 = []
list2 = []
for ccd_number in range(len(ccd)):
    if re.match('((.*)\.){3}(.*)',ccd[ccd_number]):
        list1.append(ccd[ccd_number])
        list1.append(ccd[ccd_number + 1])

        if ccd[ccd_number + 2] == 'I':
            list1.append('0')
            list1.append('-')
            list1.append(ccd[ccd_number + 4])
            list1.append('-')

        else:
            list1.append(ccd[ccd_number + 2])
            list1.append(ccd[ccd_number + 3])
            list1.append(ccd[ccd_number + 4])
            list1.append(ccd[ccd_number + 5])


        list2.append(list1)
        list1 = []

print(list2)